<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="共几页" prop="totalPage">
        <el-input
          v-model="queryParams.totalPage"
          placeholder="请输入共几页"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="第几页" prop="page">
        <el-input
          v-model="queryParams.page"
          placeholder="请输入第几页"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="检测单位名称" prop="jiancdwmc">
        <el-input
          v-model="queryParams.jiancdwmc"
          placeholder="请输入检测单位名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="记录编号" prop="jilbh">
        <el-input
          v-model="queryParams.jilbh"
          placeholder="请输入记录编号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="工程名称" prop="gongcmc">
        <el-input
          v-model="queryParams.gongcmc"
          placeholder="请输入工程名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="工程部位/用途" prop="gongcbwyt">
        <el-input
          v-model="queryParams.gongcbwyt"
          placeholder="请输入工程部位/用途"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品名称" prop="yangpmc">
        <el-input
          v-model="queryParams.yangpmc"
          placeholder="请输入样品名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品编号" prop="yangpbh">
        <el-input
          v-model="queryParams.yangpbh"
          placeholder="请输入样品编号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品数量" prop="yangpsl">
        <el-input
          v-model="queryParams.yangpsl"
          placeholder="请输入样品数量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品状态" prop="yangpzt">
        <el-input
          v-model="queryParams.yangpzt"
          placeholder="请输入样品状态"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品时间" prop="yangpsj">
        <el-input
          v-model="queryParams.yangpsj"
          placeholder="请输入样品时间"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验检测日期" prop="shiyjcrq">
        <el-input
          v-model="queryParams.shiyjcrq"
          placeholder="请输入试验检测日期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验条件温度" prop="shiytjwd">
        <el-input
          v-model="queryParams.shiytjwd"
          placeholder="请输入试验条件温度"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验条件湿度" prop="shiytjsd">
        <el-input
          v-model="queryParams.shiytjsd"
          placeholder="请输入试验条件湿度"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="检测依据" prop="jiancyj">
        <el-input
          v-model="queryParams.jiancyj"
          placeholder="请输入检测依据"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="判定依据" prop="pandyj">
        <el-input
          v-model="queryParams.pandyj"
          placeholder="请输入判定依据"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="主要仪器设备名称及编号" prop="zhuyyqsbmcjbh">
        <el-input
          v-model="queryParams.zhuyyqsbmcjbh"
          placeholder="请输入主要仪器设备名称及编号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="盒质量1" prop="hezl1">
        <el-input
          v-model="queryParams.hezl1"
          placeholder="请输入盒质量1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="盒质量2" prop="hezl2">
        <el-input
          v-model="queryParams.hezl2"
          placeholder="请输入盒质量2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="盒+湿样质量1" prop="hesyzl1">
        <el-input
          v-model="queryParams.hesyzl1"
          placeholder="请输入盒+湿样质量1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="盒+湿样质量2" prop="hesyzl2">
        <el-input
          v-model="queryParams.hesyzl2"
          placeholder="请输入盒+湿样质量2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="盒+干样质量1" prop="hegyzl1">
        <el-input
          v-model="queryParams.hegyzl1"
          placeholder="请输入盒+干样质量1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="盒+干样质量2" prop="hegyzl2">
        <el-input
          v-model="queryParams.hegyzl2"
          placeholder="请输入盒+干样质量2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="水分质量1" prop="shuifzl1">
        <el-input
          v-model="queryParams.shuifzl1"
          placeholder="请输入水分质量1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="水分质量2" prop="shuifzl2">
        <el-input
          v-model="queryParams.shuifzl2"
          placeholder="请输入水分质量2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="干试样质量1" prop="gansyzl1">
        <el-input
          v-model="queryParams.gansyzl1"
          placeholder="请输入干试样质量1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="干试样质量2" prop="gansyzl2">
        <el-input
          v-model="queryParams.gansyzl2"
          placeholder="请输入干试样质量2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="含水率单值1" prop="hansldz1">
        <el-input
          v-model="queryParams.hansldz1"
          placeholder="请输入含水率单值1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="含水率单值2" prop="hansldz2">
        <el-input
          v-model="queryParams.hansldz2"
          placeholder="请输入含水率单值2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="含水率平均值" prop="hanslpjz">
        <el-input
          v-model="queryParams.hanslpjz"
          placeholder="请输入含水率平均值"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验温度1" prop="shiywd1">
        <el-input
          v-model="queryParams.shiywd1"
          placeholder="请输入试验温度1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验温度2" prop="shiywd2">
        <el-input
          v-model="queryParams.shiywd2"
          placeholder="请输入试验温度2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="水的密度1" prop="shuidmd1">
        <el-input
          v-model="queryParams.shuidmd1"
          placeholder="请输入水的密度1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="水的密度2" prop="shuidmd2">
        <el-input
          v-model="queryParams.shuidmd2"
          placeholder="请输入水的密度2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验前1" prop="shiyq1">
        <el-input
          v-model="queryParams.shiyq1"
          placeholder="请输入试验前1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验前2" prop="shiyq2">
        <el-input
          v-model="queryParams.shiyq2"
          placeholder="请输入试验前2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验后1" prop="shiyh1">
        <el-input
          v-model="queryParams.shiyh1"
          placeholder="请输入试验后1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验后2" prop="shiyh2">
        <el-input
          v-model="queryParams.shiyh2"
          placeholder="请输入试验后2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="加石灰前1" prop="jiashq1">
        <el-input
          v-model="queryParams.jiashq1"
          placeholder="请输入加石灰前1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="加石灰前2" prop="jiashq2">
        <el-input
          v-model="queryParams.jiashq2"
          placeholder="请输入加石灰前2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="加石灰后1" prop="jiashh1">
        <el-input
          v-model="queryParams.jiashh1"
          placeholder="请输入加石灰后1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="加石灰后2" prop="jiashh2">
        <el-input
          v-model="queryParams.jiashh2"
          placeholder="请输入加石灰后2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="石灰密度单值1" prop="shihmddz1">
        <el-input
          v-model="queryParams.shihmddz1"
          placeholder="请输入石灰密度单值1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="石灰密度单值2" prop="shihmddz2">
        <el-input
          v-model="queryParams.shihmddz2"
          placeholder="请输入石灰密度单值2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="石灰密度平均值1" prop="shihmdpjz1">
        <el-input
          v-model="queryParams.shihmdpjz1"
          placeholder="请输入石灰密度平均值1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="石灰密度平均值2" prop="shihmdpjz2">
        <el-input
          v-model="queryParams.shihmdpjz2"
          placeholder="请输入石灰密度平均值2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="石灰相对密度" prop="shihxdmd">
        <el-input
          v-model="queryParams.shihxdmd"
          placeholder="请输入石灰相对密度"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品质量1" prop="yangpzl1">
        <el-input
          v-model="queryParams.yangpzl1"
          placeholder="请输入样品质量1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品质量2" prop="yangpzl2">
        <el-input
          v-model="queryParams.yangpzl2"
          placeholder="请输入样品质量2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品质量3" prop="yangpzl3">
        <el-input
          v-model="queryParams.yangpzl3"
          placeholder="请输入样品质量3"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="0.6mm筛余物质量m11" prop="m11">
        <el-input
          v-model="queryParams.m11"
          placeholder="请输入0.6mm筛余物质量m11"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="0.6mm筛余物质量m12" prop="m12">
        <el-input
          v-model="queryParams.m12"
          placeholder="请输入0.6mm筛余物质量m12"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="0.6mm筛余物质量m13" prop="m13">
        <el-input
          v-model="queryParams.m13"
          placeholder="请输入0.6mm筛余物质量m13"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="0.15mm筛余物质量m21" prop="m21">
        <el-input
          v-model="queryParams.m21"
          placeholder="请输入0.15mm筛余物质量m21"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="0.15mm筛余物质量m22" prop="m22">
        <el-input
          v-model="queryParams.m22"
          placeholder="请输入0.15mm筛余物质量m22"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="0.15mm筛余物质量m23" prop="m23">
        <el-input
          v-model="queryParams.m23"
          placeholder="请输入0.15mm筛余物质量m23"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="x11" prop="x11">
        <el-input
          v-model="queryParams.x11"
          placeholder="请输入x11"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="x12" prop="x12">
        <el-input
          v-model="queryParams.x12"
          placeholder="请输入x12"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="x13" prop="x13">
        <el-input
          v-model="queryParams.x13"
          placeholder="请输入x13"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="x21" prop="x21">
        <el-input
          v-model="queryParams.x21"
          placeholder="请输入x21"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="x22" prop="x22">
        <el-input
          v-model="queryParams.x22"
          placeholder="请输入x22"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="x23" prop="x23">
        <el-input
          v-model="queryParams.x23"
          placeholder="请输入x23"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试样干质量1" prop="shiygzl1">
        <el-input
          v-model="queryParams.shiygzl1"
          placeholder="请输入试样干质量1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试样干质量2" prop="shiygzl2">
        <el-input
          v-model="queryParams.shiygzl2"
          placeholder="请输入试样干质量2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试样干质量3" prop="shiygzl3">
        <el-input
          v-model="queryParams.shiygzl3"
          placeholder="请输入试样干质量3"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="干质量1" prop="ganzl1">
        <el-input
          v-model="queryParams.ganzl1"
          placeholder="请输入干质量1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="干质量2" prop="ganzl2">
        <el-input
          v-model="queryParams.ganzl2"
          placeholder="请输入干质量2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="干质量3" prop="ganzl3">
        <el-input
          v-model="queryParams.ganzl3"
          placeholder="请输入干质量3"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="百分比1" prop="baifb1">
        <el-input
          v-model="queryParams.baifb1"
          placeholder="请输入百分比1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="百分比2" prop="baifb2">
        <el-input
          v-model="queryParams.baifb2"
          placeholder="请输入百分比2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="百分比3" prop="baifb3">
        <el-input
          v-model="queryParams.baifb3"
          placeholder="请输入百分比3"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="未消解颗粒含量" prop="weixjklhl">
        <el-input
          v-model="queryParams.weixjklhl"
          placeholder="请输入未消解颗粒含量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="附加声明" prop="fujsm">
        <el-input
          v-model="queryParams.fujsm"
          placeholder="请输入附加声明"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="检测" prop="jianc">
        <el-input
          v-model="queryParams.jianc"
          placeholder="请输入检测"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="记录" prop="jil">
        <el-input
          v-model="queryParams.jil"
          placeholder="请输入记录"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="复核" prop="fuh">
        <el-input
          v-model="queryParams.fuh"
          placeholder="请输入复核"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="日期" prop="riq">
        <el-input
          v-model="queryParams.riq"
          placeholder="请输入日期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="设备ids" prop="shebIds">
        <el-input
          v-model="queryParams.shebIds"
          placeholder="请输入设备ids"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="判断依据ids" prop="pandyjIds">
        <el-input
          v-model="queryParams.pandyjIds"
          placeholder="请输入判断依据ids"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="检测依据ids" prop="jiancyjIds">
        <el-input
          v-model="queryParams.jiancyjIds"
          placeholder="请输入检测依据ids"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['report_sh:shShmdwxhczhlhslxdjlbBsInfo:add']"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['report_sh:shShmdwxhczhlhslxdjlbBsInfo:edit']"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['report_sh:shShmdwxhczhlhslxdjlbBsInfo:remove']"
        >删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          v-hasPermi="['report_sh:shShmdwxhczhlhslxdjlbBsInfo:export']"
        >导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="shShmdwxhczhlhslxdjlbBsInfoList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="一份excel表格的唯一id(其他的excel主表，都应有此字段）" align="center" prop="excelId" v-if="true"/>
      <el-table-column label="共几页" align="center" prop="totalPage" />
      <el-table-column label="第几页" align="center" prop="page" />
      <el-table-column label="检测单位名称" align="center" prop="jiancdwmc" />
      <el-table-column label="记录编号" align="center" prop="jilbh" />
      <el-table-column label="工程名称" align="center" prop="gongcmc" />
      <el-table-column label="工程部位/用途" align="center" prop="gongcbwyt" />
      <el-table-column label="样品名称" align="center" prop="yangpmc" />
      <el-table-column label="样品编号" align="center" prop="yangpbh" />
      <el-table-column label="样品数量" align="center" prop="yangpsl" />
      <el-table-column label="样品状态" align="center" prop="yangpzt" />
      <el-table-column label="样品时间" align="center" prop="yangpsj" />
      <el-table-column label="试验检测日期" align="center" prop="shiyjcrq" />
      <el-table-column label="试验条件温度" align="center" prop="shiytjwd" />
      <el-table-column label="试验条件湿度" align="center" prop="shiytjsd" />
      <el-table-column label="检测依据" align="center" prop="jiancyj" />
      <el-table-column label="判定依据" align="center" prop="pandyj" />
      <el-table-column label="主要仪器设备名称及编号" align="center" prop="zhuyyqsbmcjbh" />
      <el-table-column label="盒质量1" align="center" prop="hezl1" />
      <el-table-column label="盒质量2" align="center" prop="hezl2" />
      <el-table-column label="盒+湿样质量1" align="center" prop="hesyzl1" />
      <el-table-column label="盒+湿样质量2" align="center" prop="hesyzl2" />
      <el-table-column label="盒+干样质量1" align="center" prop="hegyzl1" />
      <el-table-column label="盒+干样质量2" align="center" prop="hegyzl2" />
      <el-table-column label="水分质量1" align="center" prop="shuifzl1" />
      <el-table-column label="水分质量2" align="center" prop="shuifzl2" />
      <el-table-column label="干试样质量1" align="center" prop="gansyzl1" />
      <el-table-column label="干试样质量2" align="center" prop="gansyzl2" />
      <el-table-column label="含水率单值1" align="center" prop="hansldz1" />
      <el-table-column label="含水率单值2" align="center" prop="hansldz2" />
      <el-table-column label="含水率平均值" align="center" prop="hanslpjz" />
      <el-table-column label="试验温度1" align="center" prop="shiywd1" />
      <el-table-column label="试验温度2" align="center" prop="shiywd2" />
      <el-table-column label="水的密度1" align="center" prop="shuidmd1" />
      <el-table-column label="水的密度2" align="center" prop="shuidmd2" />
      <el-table-column label="试验前1" align="center" prop="shiyq1" />
      <el-table-column label="试验前2" align="center" prop="shiyq2" />
      <el-table-column label="试验后1" align="center" prop="shiyh1" />
      <el-table-column label="试验后2" align="center" prop="shiyh2" />
      <el-table-column label="加石灰前1" align="center" prop="jiashq1" />
      <el-table-column label="加石灰前2" align="center" prop="jiashq2" />
      <el-table-column label="加石灰后1" align="center" prop="jiashh1" />
      <el-table-column label="加石灰后2" align="center" prop="jiashh2" />
      <el-table-column label="石灰密度单值1" align="center" prop="shihmddz1" />
      <el-table-column label="石灰密度单值2" align="center" prop="shihmddz2" />
      <el-table-column label="石灰密度平均值1" align="center" prop="shihmdpjz1" />
      <el-table-column label="石灰密度平均值2" align="center" prop="shihmdpjz2" />
      <el-table-column label="石灰相对密度" align="center" prop="shihxdmd" />
      <el-table-column label="样品质量1" align="center" prop="yangpzl1" />
      <el-table-column label="样品质量2" align="center" prop="yangpzl2" />
      <el-table-column label="样品质量3" align="center" prop="yangpzl3" />
      <el-table-column label="0.6mm筛余物质量m11" align="center" prop="m11" />
      <el-table-column label="0.6mm筛余物质量m12" align="center" prop="m12" />
      <el-table-column label="0.6mm筛余物质量m13" align="center" prop="m13" />
      <el-table-column label="0.15mm筛余物质量m21" align="center" prop="m21" />
      <el-table-column label="0.15mm筛余物质量m22" align="center" prop="m22" />
      <el-table-column label="0.15mm筛余物质量m23" align="center" prop="m23" />
      <el-table-column label="x11" align="center" prop="x11" />
      <el-table-column label="x12" align="center" prop="x12" />
      <el-table-column label="x13" align="center" prop="x13" />
      <el-table-column label="x21" align="center" prop="x21" />
      <el-table-column label="x22" align="center" prop="x22" />
      <el-table-column label="x23" align="center" prop="x23" />
      <el-table-column label="试样干质量1" align="center" prop="shiygzl1" />
      <el-table-column label="试样干质量2" align="center" prop="shiygzl2" />
      <el-table-column label="试样干质量3" align="center" prop="shiygzl3" />
      <el-table-column label="干质量1" align="center" prop="ganzl1" />
      <el-table-column label="干质量2" align="center" prop="ganzl2" />
      <el-table-column label="干质量3" align="center" prop="ganzl3" />
      <el-table-column label="百分比1" align="center" prop="baifb1" />
      <el-table-column label="百分比2" align="center" prop="baifb2" />
      <el-table-column label="百分比3" align="center" prop="baifb3" />
      <el-table-column label="未消解颗粒含量" align="center" prop="weixjklhl" />
      <el-table-column label="附加声明" align="center" prop="fujsm" />
      <el-table-column label="检测" align="center" prop="jianc" />
      <el-table-column label="记录" align="center" prop="jil" />
      <el-table-column label="复核" align="center" prop="fuh" />
      <el-table-column label="日期" align="center" prop="riq" />
      <el-table-column label="设备ids" align="center" prop="shebIds" />
      <el-table-column label="判断依据ids" align="center" prop="pandyjIds" />
      <el-table-column label="检测依据ids" align="center" prop="jiancyjIds" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['report_sh:shShmdwxhczhlhslxdjlbBsInfo:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['report_sh:shShmdwxhczhlhslxdjlbBsInfo:remove']"
          >删除</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改石灰密度、未消化残渣含量、含水率、细度试验检测记录对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="共几页" prop="totalPage">
          <el-input v-model="form.totalPage" placeholder="请输入共几页" />
        </el-form-item>
        <el-form-item label="第几页" prop="page">
          <el-input v-model="form.page" placeholder="请输入第几页" />
        </el-form-item>
        <el-form-item label="检测单位名称" prop="jiancdwmc">
          <el-input v-model="form.jiancdwmc" placeholder="请输入检测单位名称" />
        </el-form-item>
        <el-form-item label="记录编号" prop="jilbh">
          <el-input v-model="form.jilbh" placeholder="请输入记录编号" />
        </el-form-item>
        <el-form-item label="工程名称" prop="gongcmc">
          <el-input v-model="form.gongcmc" placeholder="请输入工程名称" />
        </el-form-item>
        <el-form-item label="工程部位/用途" prop="gongcbwyt">
          <el-input v-model="form.gongcbwyt" placeholder="请输入工程部位/用途" />
        </el-form-item>
        <el-form-item label="样品名称" prop="yangpmc">
          <el-input v-model="form.yangpmc" placeholder="请输入样品名称" />
        </el-form-item>
        <el-form-item label="样品编号" prop="yangpbh">
          <el-input v-model="form.yangpbh" placeholder="请输入样品编号" />
        </el-form-item>
        <el-form-item label="样品数量" prop="yangpsl">
          <el-input v-model="form.yangpsl" placeholder="请输入样品数量" />
        </el-form-item>
        <el-form-item label="样品状态" prop="yangpzt">
          <el-input v-model="form.yangpzt" placeholder="请输入样品状态" />
        </el-form-item>
        <el-form-item label="样品时间" prop="yangpsj">
          <el-input v-model="form.yangpsj" placeholder="请输入样品时间" />
        </el-form-item>
        <el-form-item label="试验检测日期" prop="shiyjcrq">
          <el-input v-model="form.shiyjcrq" placeholder="请输入试验检测日期" />
        </el-form-item>
        <el-form-item label="试验条件温度" prop="shiytjwd">
          <el-input v-model="form.shiytjwd" placeholder="请输入试验条件温度" />
        </el-form-item>
        <el-form-item label="试验条件湿度" prop="shiytjsd">
          <el-input v-model="form.shiytjsd" placeholder="请输入试验条件湿度" />
        </el-form-item>
        <el-form-item label="检测依据" prop="jiancyj">
          <el-input v-model="form.jiancyj" placeholder="请输入检测依据" />
        </el-form-item>
        <el-form-item label="判定依据" prop="pandyj">
          <el-input v-model="form.pandyj" placeholder="请输入判定依据" />
        </el-form-item>
        <el-form-item label="主要仪器设备名称及编号" prop="zhuyyqsbmcjbh">
          <el-input v-model="form.zhuyyqsbmcjbh" placeholder="请输入主要仪器设备名称及编号" />
        </el-form-item>
        <el-form-item label="盒质量1" prop="hezl1">
          <el-input v-model="form.hezl1" placeholder="请输入盒质量1" />
        </el-form-item>
        <el-form-item label="盒质量2" prop="hezl2">
          <el-input v-model="form.hezl2" placeholder="请输入盒质量2" />
        </el-form-item>
        <el-form-item label="盒+湿样质量1" prop="hesyzl1">
          <el-input v-model="form.hesyzl1" placeholder="请输入盒+湿样质量1" />
        </el-form-item>
        <el-form-item label="盒+湿样质量2" prop="hesyzl2">
          <el-input v-model="form.hesyzl2" placeholder="请输入盒+湿样质量2" />
        </el-form-item>
        <el-form-item label="盒+干样质量1" prop="hegyzl1">
          <el-input v-model="form.hegyzl1" placeholder="请输入盒+干样质量1" />
        </el-form-item>
        <el-form-item label="盒+干样质量2" prop="hegyzl2">
          <el-input v-model="form.hegyzl2" placeholder="请输入盒+干样质量2" />
        </el-form-item>
        <el-form-item label="水分质量1" prop="shuifzl1">
          <el-input v-model="form.shuifzl1" placeholder="请输入水分质量1" />
        </el-form-item>
        <el-form-item label="水分质量2" prop="shuifzl2">
          <el-input v-model="form.shuifzl2" placeholder="请输入水分质量2" />
        </el-form-item>
        <el-form-item label="干试样质量1" prop="gansyzl1">
          <el-input v-model="form.gansyzl1" placeholder="请输入干试样质量1" />
        </el-form-item>
        <el-form-item label="干试样质量2" prop="gansyzl2">
          <el-input v-model="form.gansyzl2" placeholder="请输入干试样质量2" />
        </el-form-item>
        <el-form-item label="含水率单值1" prop="hansldz1">
          <el-input v-model="form.hansldz1" placeholder="请输入含水率单值1" />
        </el-form-item>
        <el-form-item label="含水率单值2" prop="hansldz2">
          <el-input v-model="form.hansldz2" placeholder="请输入含水率单值2" />
        </el-form-item>
        <el-form-item label="含水率平均值" prop="hanslpjz">
          <el-input v-model="form.hanslpjz" placeholder="请输入含水率平均值" />
        </el-form-item>
        <el-form-item label="试验温度1" prop="shiywd1">
          <el-input v-model="form.shiywd1" placeholder="请输入试验温度1" />
        </el-form-item>
        <el-form-item label="试验温度2" prop="shiywd2">
          <el-input v-model="form.shiywd2" placeholder="请输入试验温度2" />
        </el-form-item>
        <el-form-item label="水的密度1" prop="shuidmd1">
          <el-input v-model="form.shuidmd1" placeholder="请输入水的密度1" />
        </el-form-item>
        <el-form-item label="水的密度2" prop="shuidmd2">
          <el-input v-model="form.shuidmd2" placeholder="请输入水的密度2" />
        </el-form-item>
        <el-form-item label="试验前1" prop="shiyq1">
          <el-input v-model="form.shiyq1" placeholder="请输入试验前1" />
        </el-form-item>
        <el-form-item label="试验前2" prop="shiyq2">
          <el-input v-model="form.shiyq2" placeholder="请输入试验前2" />
        </el-form-item>
        <el-form-item label="试验后1" prop="shiyh1">
          <el-input v-model="form.shiyh1" placeholder="请输入试验后1" />
        </el-form-item>
        <el-form-item label="试验后2" prop="shiyh2">
          <el-input v-model="form.shiyh2" placeholder="请输入试验后2" />
        </el-form-item>
        <el-form-item label="加石灰前1" prop="jiashq1">
          <el-input v-model="form.jiashq1" placeholder="请输入加石灰前1" />
        </el-form-item>
        <el-form-item label="加石灰前2" prop="jiashq2">
          <el-input v-model="form.jiashq2" placeholder="请输入加石灰前2" />
        </el-form-item>
        <el-form-item label="加石灰后1" prop="jiashh1">
          <el-input v-model="form.jiashh1" placeholder="请输入加石灰后1" />
        </el-form-item>
        <el-form-item label="加石灰后2" prop="jiashh2">
          <el-input v-model="form.jiashh2" placeholder="请输入加石灰后2" />
        </el-form-item>
        <el-form-item label="石灰密度单值1" prop="shihmddz1">
          <el-input v-model="form.shihmddz1" placeholder="请输入石灰密度单值1" />
        </el-form-item>
        <el-form-item label="石灰密度单值2" prop="shihmddz2">
          <el-input v-model="form.shihmddz2" placeholder="请输入石灰密度单值2" />
        </el-form-item>
        <el-form-item label="石灰密度平均值1" prop="shihmdpjz1">
          <el-input v-model="form.shihmdpjz1" placeholder="请输入石灰密度平均值1" />
        </el-form-item>
        <el-form-item label="石灰密度平均值2" prop="shihmdpjz2">
          <el-input v-model="form.shihmdpjz2" placeholder="请输入石灰密度平均值2" />
        </el-form-item>
        <el-form-item label="石灰相对密度" prop="shihxdmd">
          <el-input v-model="form.shihxdmd" placeholder="请输入石灰相对密度" />
        </el-form-item>
        <el-form-item label="样品质量1" prop="yangpzl1">
          <el-input v-model="form.yangpzl1" placeholder="请输入样品质量1" />
        </el-form-item>
        <el-form-item label="样品质量2" prop="yangpzl2">
          <el-input v-model="form.yangpzl2" placeholder="请输入样品质量2" />
        </el-form-item>
        <el-form-item label="样品质量3" prop="yangpzl3">
          <el-input v-model="form.yangpzl3" placeholder="请输入样品质量3" />
        </el-form-item>
        <el-form-item label="0.6mm筛余物质量m11" prop="m11">
          <el-input v-model="form.m11" placeholder="请输入0.6mm筛余物质量m11" />
        </el-form-item>
        <el-form-item label="0.6mm筛余物质量m12" prop="m12">
          <el-input v-model="form.m12" placeholder="请输入0.6mm筛余物质量m12" />
        </el-form-item>
        <el-form-item label="0.6mm筛余物质量m13" prop="m13">
          <el-input v-model="form.m13" placeholder="请输入0.6mm筛余物质量m13" />
        </el-form-item>
        <el-form-item label="0.15mm筛余物质量m21" prop="m21">
          <el-input v-model="form.m21" placeholder="请输入0.15mm筛余物质量m21" />
        </el-form-item>
        <el-form-item label="0.15mm筛余物质量m22" prop="m22">
          <el-input v-model="form.m22" placeholder="请输入0.15mm筛余物质量m22" />
        </el-form-item>
        <el-form-item label="0.15mm筛余物质量m23" prop="m23">
          <el-input v-model="form.m23" placeholder="请输入0.15mm筛余物质量m23" />
        </el-form-item>
        <el-form-item label="x11" prop="x11">
          <el-input v-model="form.x11" placeholder="请输入x11" />
        </el-form-item>
        <el-form-item label="x12" prop="x12">
          <el-input v-model="form.x12" placeholder="请输入x12" />
        </el-form-item>
        <el-form-item label="x13" prop="x13">
          <el-input v-model="form.x13" placeholder="请输入x13" />
        </el-form-item>
        <el-form-item label="x21" prop="x21">
          <el-input v-model="form.x21" placeholder="请输入x21" />
        </el-form-item>
        <el-form-item label="x22" prop="x22">
          <el-input v-model="form.x22" placeholder="请输入x22" />
        </el-form-item>
        <el-form-item label="x23" prop="x23">
          <el-input v-model="form.x23" placeholder="请输入x23" />
        </el-form-item>
        <el-form-item label="试样干质量1" prop="shiygzl1">
          <el-input v-model="form.shiygzl1" placeholder="请输入试样干质量1" />
        </el-form-item>
        <el-form-item label="试样干质量2" prop="shiygzl2">
          <el-input v-model="form.shiygzl2" placeholder="请输入试样干质量2" />
        </el-form-item>
        <el-form-item label="试样干质量3" prop="shiygzl3">
          <el-input v-model="form.shiygzl3" placeholder="请输入试样干质量3" />
        </el-form-item>
        <el-form-item label="干质量1" prop="ganzl1">
          <el-input v-model="form.ganzl1" placeholder="请输入干质量1" />
        </el-form-item>
        <el-form-item label="干质量2" prop="ganzl2">
          <el-input v-model="form.ganzl2" placeholder="请输入干质量2" />
        </el-form-item>
        <el-form-item label="干质量3" prop="ganzl3">
          <el-input v-model="form.ganzl3" placeholder="请输入干质量3" />
        </el-form-item>
        <el-form-item label="百分比1" prop="baifb1">
          <el-input v-model="form.baifb1" placeholder="请输入百分比1" />
        </el-form-item>
        <el-form-item label="百分比2" prop="baifb2">
          <el-input v-model="form.baifb2" placeholder="请输入百分比2" />
        </el-form-item>
        <el-form-item label="百分比3" prop="baifb3">
          <el-input v-model="form.baifb3" placeholder="请输入百分比3" />
        </el-form-item>
        <el-form-item label="未消解颗粒含量" prop="weixjklhl">
          <el-input v-model="form.weixjklhl" placeholder="请输入未消解颗粒含量" />
        </el-form-item>
        <el-form-item label="附加声明" prop="fujsm">
          <el-input v-model="form.fujsm" placeholder="请输入附加声明" />
        </el-form-item>
        <el-form-item label="检测" prop="jianc">
          <el-input v-model="form.jianc" placeholder="请输入检测" />
        </el-form-item>
        <el-form-item label="记录" prop="jil">
          <el-input v-model="form.jil" placeholder="请输入记录" />
        </el-form-item>
        <el-form-item label="复核" prop="fuh">
          <el-input v-model="form.fuh" placeholder="请输入复核" />
        </el-form-item>
        <el-form-item label="日期" prop="riq">
          <el-input v-model="form.riq" placeholder="请输入日期" />
        </el-form-item>
        <el-form-item label="设备ids" prop="shebIds">
          <el-input v-model="form.shebIds" placeholder="请输入设备ids" />
        </el-form-item>
        <el-form-item label="判断依据ids" prop="pandyjIds">
          <el-input v-model="form.pandyjIds" placeholder="请输入判断依据ids" />
        </el-form-item>
        <el-form-item label="检测依据ids" prop="jiancyjIds">
          <el-input v-model="form.jiancyjIds" placeholder="请输入检测依据ids" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listShShmdwxhczhlhslxdjlbBsInfo, getShShmdwxhczhlhslxdjlbBsInfo, delShShmdwxhczhlhslxdjlbBsInfo, addShShmdwxhczhlhslxdjlbBsInfo, updateShShmdwxhczhlhslxdjlbBsInfo } from "@/api/report_sh/shShmdwxhczhlhslxdjlbBsInfo";

export default {
  name: "ShShmdwxhczhlhslxdjlbBsInfo",
  data() {
    return {
      // 按钮loading
      buttonLoading: false,
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 石灰密度、未消化残渣含量、含水率、细度试验检测记录表格数据
      shShmdwxhczhlhslxdjlbBsInfoList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        totalPage: undefined,
        page: undefined,
        jiancdwmc: undefined,
        jilbh: undefined,
        gongcmc: undefined,
        gongcbwyt: undefined,
        yangpmc: undefined,
        yangpbh: undefined,
        yangpsl: undefined,
        yangpzt: undefined,
        yangpsj: undefined,
        shiyjcrq: undefined,
        shiytjwd: undefined,
        shiytjsd: undefined,
        jiancyj: undefined,
        pandyj: undefined,
        zhuyyqsbmcjbh: undefined,
        hezl1: undefined,
        hezl2: undefined,
        hesyzl1: undefined,
        hesyzl2: undefined,
        hegyzl1: undefined,
        hegyzl2: undefined,
        shuifzl1: undefined,
        shuifzl2: undefined,
        gansyzl1: undefined,
        gansyzl2: undefined,
        hansldz1: undefined,
        hansldz2: undefined,
        hanslpjz: undefined,
        shiywd1: undefined,
        shiywd2: undefined,
        shuidmd1: undefined,
        shuidmd2: undefined,
        shiyq1: undefined,
        shiyq2: undefined,
        shiyh1: undefined,
        shiyh2: undefined,
        jiashq1: undefined,
        jiashq2: undefined,
        jiashh1: undefined,
        jiashh2: undefined,
        shihmddz1: undefined,
        shihmddz2: undefined,
        shihmdpjz1: undefined,
        shihmdpjz2: undefined,
        shihxdmd: undefined,
        yangpzl1: undefined,
        yangpzl2: undefined,
        yangpzl3: undefined,
        m11: undefined,
        m12: undefined,
        m13: undefined,
        m21: undefined,
        m22: undefined,
        m23: undefined,
        x11: undefined,
        x12: undefined,
        x13: undefined,
        x21: undefined,
        x22: undefined,
        x23: undefined,
        shiygzl1: undefined,
        shiygzl2: undefined,
        shiygzl3: undefined,
        ganzl1: undefined,
        ganzl2: undefined,
        ganzl3: undefined,
        baifb1: undefined,
        baifb2: undefined,
        baifb3: undefined,
        weixjklhl: undefined,
        fujsm: undefined,
        jianc: undefined,
        jil: undefined,
        fuh: undefined,
        riq: undefined,
        shebIds: undefined,
        pandyjIds: undefined,
        jiancyjIds: undefined
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
        excelId: [
          { required: true, message: "一份excel表格的唯一id(其他的excel主表，都应有此字段）不能为空", trigger: "blur" }
        ],
        totalPage: [
          { required: true, message: "共几页不能为空", trigger: "blur" }
        ],
        page: [
          { required: true, message: "第几页不能为空", trigger: "blur" }
        ],
        jiancdwmc: [
          { required: true, message: "检测单位名称不能为空", trigger: "blur" }
        ],
        jilbh: [
          { required: true, message: "记录编号不能为空", trigger: "blur" }
        ],
        gongcmc: [
          { required: true, message: "工程名称不能为空", trigger: "blur" }
        ],
        gongcbwyt: [
          { required: true, message: "工程部位/用途不能为空", trigger: "blur" }
        ],
        yangpmc: [
          { required: true, message: "样品名称不能为空", trigger: "blur" }
        ],
        yangpbh: [
          { required: true, message: "样品编号不能为空", trigger: "blur" }
        ],
        yangpsl: [
          { required: true, message: "样品数量不能为空", trigger: "blur" }
        ],
        yangpzt: [
          { required: true, message: "样品状态不能为空", trigger: "blur" }
        ],
        yangpsj: [
          { required: true, message: "样品时间不能为空", trigger: "blur" }
        ],
        shiyjcrq: [
          { required: true, message: "试验检测日期不能为空", trigger: "blur" }
        ],
        shiytjwd: [
          { required: true, message: "试验条件温度不能为空", trigger: "blur" }
        ],
        shiytjsd: [
          { required: true, message: "试验条件湿度不能为空", trigger: "blur" }
        ],
        jiancyj: [
          { required: true, message: "检测依据不能为空", trigger: "blur" }
        ],
        pandyj: [
          { required: true, message: "判定依据不能为空", trigger: "blur" }
        ],
        zhuyyqsbmcjbh: [
          { required: true, message: "主要仪器设备名称及编号不能为空", trigger: "blur" }
        ],
        hezl1: [
          { required: true, message: "盒质量1不能为空", trigger: "blur" }
        ],
        hezl2: [
          { required: true, message: "盒质量2不能为空", trigger: "blur" }
        ],
        hesyzl1: [
          { required: true, message: "盒+湿样质量1不能为空", trigger: "blur" }
        ],
        hesyzl2: [
          { required: true, message: "盒+湿样质量2不能为空", trigger: "blur" }
        ],
        hegyzl1: [
          { required: true, message: "盒+干样质量1不能为空", trigger: "blur" }
        ],
        hegyzl2: [
          { required: true, message: "盒+干样质量2不能为空", trigger: "blur" }
        ],
        shuifzl1: [
          { required: true, message: "水分质量1不能为空", trigger: "blur" }
        ],
        shuifzl2: [
          { required: true, message: "水分质量2不能为空", trigger: "blur" }
        ],
        gansyzl1: [
          { required: true, message: "干试样质量1不能为空", trigger: "blur" }
        ],
        gansyzl2: [
          { required: true, message: "干试样质量2不能为空", trigger: "blur" }
        ],
        hansldz1: [
          { required: true, message: "含水率单值1不能为空", trigger: "blur" }
        ],
        hansldz2: [
          { required: true, message: "含水率单值2不能为空", trigger: "blur" }
        ],
        hanslpjz: [
          { required: true, message: "含水率平均值不能为空", trigger: "blur" }
        ],
        shiywd1: [
          { required: true, message: "试验温度1不能为空", trigger: "blur" }
        ],
        shiywd2: [
          { required: true, message: "试验温度2不能为空", trigger: "blur" }
        ],
        shuidmd1: [
          { required: true, message: "水的密度1不能为空", trigger: "blur" }
        ],
        shuidmd2: [
          { required: true, message: "水的密度2不能为空", trigger: "blur" }
        ],
        shiyq1: [
          { required: true, message: "试验前1不能为空", trigger: "blur" }
        ],
        shiyq2: [
          { required: true, message: "试验前2不能为空", trigger: "blur" }
        ],
        shiyh1: [
          { required: true, message: "试验后1不能为空", trigger: "blur" }
        ],
        shiyh2: [
          { required: true, message: "试验后2不能为空", trigger: "blur" }
        ],
        jiashq1: [
          { required: true, message: "加石灰前1不能为空", trigger: "blur" }
        ],
        jiashq2: [
          { required: true, message: "加石灰前2不能为空", trigger: "blur" }
        ],
        jiashh1: [
          { required: true, message: "加石灰后1不能为空", trigger: "blur" }
        ],
        jiashh2: [
          { required: true, message: "加石灰后2不能为空", trigger: "blur" }
        ],
        shihmddz1: [
          { required: true, message: "石灰密度单值1不能为空", trigger: "blur" }
        ],
        shihmddz2: [
          { required: true, message: "石灰密度单值2不能为空", trigger: "blur" }
        ],
        shihmdpjz1: [
          { required: true, message: "石灰密度平均值1不能为空", trigger: "blur" }
        ],
        shihmdpjz2: [
          { required: true, message: "石灰密度平均值2不能为空", trigger: "blur" }
        ],
        shihxdmd: [
          { required: true, message: "石灰相对密度不能为空", trigger: "blur" }
        ],
        yangpzl1: [
          { required: true, message: "样品质量1不能为空", trigger: "blur" }
        ],
        yangpzl2: [
          { required: true, message: "样品质量2不能为空", trigger: "blur" }
        ],
        yangpzl3: [
          { required: true, message: "样品质量3不能为空", trigger: "blur" }
        ],
        m11: [
          { required: true, message: "0.6mm筛余物质量m11不能为空", trigger: "blur" }
        ],
        m12: [
          { required: true, message: "0.6mm筛余物质量m12不能为空", trigger: "blur" }
        ],
        m13: [
          { required: true, message: "0.6mm筛余物质量m13不能为空", trigger: "blur" }
        ],
        m21: [
          { required: true, message: "0.15mm筛余物质量m21不能为空", trigger: "blur" }
        ],
        m22: [
          { required: true, message: "0.15mm筛余物质量m22不能为空", trigger: "blur" }
        ],
        m23: [
          { required: true, message: "0.15mm筛余物质量m23不能为空", trigger: "blur" }
        ],
        x11: [
          { required: true, message: "x11不能为空", trigger: "blur" }
        ],
        x12: [
          { required: true, message: "x12不能为空", trigger: "blur" }
        ],
        x13: [
          { required: true, message: "x13不能为空", trigger: "blur" }
        ],
        x21: [
          { required: true, message: "x21不能为空", trigger: "blur" }
        ],
        x22: [
          { required: true, message: "x22不能为空", trigger: "blur" }
        ],
        x23: [
          { required: true, message: "x23不能为空", trigger: "blur" }
        ],
        shiygzl1: [
          { required: true, message: "试样干质量1不能为空", trigger: "blur" }
        ],
        shiygzl2: [
          { required: true, message: "试样干质量2不能为空", trigger: "blur" }
        ],
        shiygzl3: [
          { required: true, message: "试样干质量3不能为空", trigger: "blur" }
        ],
        ganzl1: [
          { required: true, message: "干质量1不能为空", trigger: "blur" }
        ],
        ganzl2: [
          { required: true, message: "干质量2不能为空", trigger: "blur" }
        ],
        ganzl3: [
          { required: true, message: "干质量3不能为空", trigger: "blur" }
        ],
        baifb1: [
          { required: true, message: "百分比1不能为空", trigger: "blur" }
        ],
        baifb2: [
          { required: true, message: "百分比2不能为空", trigger: "blur" }
        ],
        baifb3: [
          { required: true, message: "百分比3不能为空", trigger: "blur" }
        ],
        weixjklhl: [
          { required: true, message: "未消解颗粒含量不能为空", trigger: "blur" }
        ],
        fujsm: [
          { required: true, message: "附加声明不能为空", trigger: "blur" }
        ],
        jianc: [
          { required: true, message: "检测不能为空", trigger: "blur" }
        ],
        jil: [
          { required: true, message: "记录不能为空", trigger: "blur" }
        ],
        fuh: [
          { required: true, message: "复核不能为空", trigger: "blur" }
        ],
        riq: [
          { required: true, message: "日期不能为空", trigger: "blur" }
        ],
        shebIds: [
          { required: true, message: "设备ids不能为空", trigger: "blur" }
        ],
        pandyjIds: [
          { required: true, message: "判断依据ids不能为空", trigger: "blur" }
        ],
        jiancyjIds: [
          { required: true, message: "检测依据ids不能为空", trigger: "blur" }
        ]
      }
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询石灰密度、未消化残渣含量、含水率、细度试验检测记录列表 */
    getList() {
      this.loading = true;
      listShShmdwxhczhlhslxdjlbBsInfo(this.queryParams).then(response => {
        this.shShmdwxhczhlhslxdjlbBsInfoList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        excelId: undefined,
        totalPage: undefined,
        page: undefined,
        jiancdwmc: undefined,
        jilbh: undefined,
        gongcmc: undefined,
        gongcbwyt: undefined,
        yangpmc: undefined,
        yangpbh: undefined,
        yangpsl: undefined,
        yangpzt: undefined,
        yangpsj: undefined,
        shiyjcrq: undefined,
        shiytjwd: undefined,
        shiytjsd: undefined,
        jiancyj: undefined,
        pandyj: undefined,
        zhuyyqsbmcjbh: undefined,
        hezl1: undefined,
        hezl2: undefined,
        hesyzl1: undefined,
        hesyzl2: undefined,
        hegyzl1: undefined,
        hegyzl2: undefined,
        shuifzl1: undefined,
        shuifzl2: undefined,
        gansyzl1: undefined,
        gansyzl2: undefined,
        hansldz1: undefined,
        hansldz2: undefined,
        hanslpjz: undefined,
        shiywd1: undefined,
        shiywd2: undefined,
        shuidmd1: undefined,
        shuidmd2: undefined,
        shiyq1: undefined,
        shiyq2: undefined,
        shiyh1: undefined,
        shiyh2: undefined,
        jiashq1: undefined,
        jiashq2: undefined,
        jiashh1: undefined,
        jiashh2: undefined,
        shihmddz1: undefined,
        shihmddz2: undefined,
        shihmdpjz1: undefined,
        shihmdpjz2: undefined,
        shihxdmd: undefined,
        yangpzl1: undefined,
        yangpzl2: undefined,
        yangpzl3: undefined,
        m11: undefined,
        m12: undefined,
        m13: undefined,
        m21: undefined,
        m22: undefined,
        m23: undefined,
        x11: undefined,
        x12: undefined,
        x13: undefined,
        x21: undefined,
        x22: undefined,
        x23: undefined,
        shiygzl1: undefined,
        shiygzl2: undefined,
        shiygzl3: undefined,
        ganzl1: undefined,
        ganzl2: undefined,
        ganzl3: undefined,
        baifb1: undefined,
        baifb2: undefined,
        baifb3: undefined,
        weixjklhl: undefined,
        fujsm: undefined,
        jianc: undefined,
        jil: undefined,
        fuh: undefined,
        riq: undefined,
        delFlag: undefined,
        createBy: undefined,
        createTime: undefined,
        updateBy: undefined,
        updateTime: undefined,
        shebIds: undefined,
        pandyjIds: undefined,
        jiancyjIds: undefined
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.excelId)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加石灰密度、未消化残渣含量、含水率、细度试验检测记录";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.loading = true;
      this.reset();
      const excelId = row.excelId || this.ids
      getShShmdwxhczhlhslxdjlbBsInfo(excelId).then(response => {
        this.loading = false;
        this.form = response.data;
        this.open = true;
        this.title = "修改石灰密度、未消化残渣含量、含水率、细度试验检测记录";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          this.buttonLoading = true;
          if (this.form.excelId != null) {
            updateShShmdwxhczhlhslxdjlbBsInfo(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            }).finally(() => {
              this.buttonLoading = false;
            });
          } else {
            addShShmdwxhczhlhslxdjlbBsInfo(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            }).finally(() => {
              this.buttonLoading = false;
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const excelIds = row.excelId || this.ids;
      this.$modal.confirm('是否确认删除石灰密度、未消化残渣含量、含水率、细度试验检测记录编号为"' + excelIds + '"的数据项？').then(() => {
        this.loading = true;
        return delShShmdwxhczhlhslxdjlbBsInfo(excelIds);
      }).then(() => {
        this.loading = false;
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {
      }).finally(() => {
        this.loading = false;
      });
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('report_sh/shShmdwxhczhlhslxdjlbBsInfo/export', {
        ...this.queryParams
      }, `shShmdwxhczhlhslxdjlbBsInfo_${new Date().getTime()}.xlsx`)
    }
  }
};
</script>
